package tgc.rj.zz.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.rj.zz.custom.CommonService;
import tgc.rj.zz.entity.Student;
import tgc.rj.zz.repository.StudentRepository;

@Service
public class StudentService extends CommonService<Student, Integer>{

	@Autowired
	private StudentRepository stuDAO;
	
	public Student findByUsername(String username) {
		
		return stuDAO.findByUsername(username);
	}

}
